package design_pattern.command.demo01;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-16 10:52:39
 * @ClassName : design_pattern.command.demo01.ConcreteCommand
 * @Description : 具体的指令类，用于绑定接收者；即 将接收者的动作，绑定在execute上，以实现execute
 */
public class ConcreteCommand extends Command{

    public ConcreteCommand(Receiver receiver) {
        super(receiver);
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
